<?php
require(dirname(__FILE__) . '/../includes/global.php');
$username		= trim($_GET['username']);
$tbl_members	= $_TABLES['members'];
$conn			= & get_db_conn();
$sql			= "SELECT `uid` FROM $tbl_members WHERE 1 AND `username` = '$username'";
$rs				= $conn->GetRow($sql);
$rs_username	= @(int)$rs['uid'];
if($rs_username <= 0) {
    echo "0"; 
} else {
	echo "1";
}
?>